<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

//订单管理

class Order extends Admin_Controller{
    public function __construct()
    {
        parent::__construct();
        $this->load->model('admin/orders_model');

    }
    //订单列表
     public function index(){
         $pay_status = $this->input->get("pay_status");
         $data['orders'] = $this->orders_model->list_orders($pay_status);
         $data['nums'] = $this->orders_model->counts_orders($pay_status);
         $this->load->view('order.html',$data);
     }



}